package com.stephenone.zhdaily.comment.adapter;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.stephenone.zhdaily.R;
import com.stephenone.zhdaily.data.bean.EmptyComment;

import me.drakeet.multitype.ItemViewBinder;


/**
 * Created by Administrator on 2018/3/15.
 */
public class EmptyCommentViewBinder extends ItemViewBinder<EmptyComment, EmptyCommentViewBinder.ViewHolder> {
    private int mItemHeight;
    private int mScreenWidth;

    public EmptyCommentViewBinder(int itemHeight,int screenWidth){
        mItemHeight = itemHeight;
        mScreenWidth = screenWidth;
    }

    @NonNull
    @Override
    protected ViewHolder onCreateViewHolder(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        View root = inflater.inflate(R.layout.item_empty_comment, parent, false);
        ViewGroup.LayoutParams layoutParams = root.getLayoutParams();
        layoutParams.height = mItemHeight;
        layoutParams.width = mScreenWidth;
        root.setLayoutParams(layoutParams);
        return new ViewHolder(root);
    }

    @Override
    protected void onBindViewHolder(@NonNull ViewHolder holder, @NonNull EmptyComment emptyComment) {

    }

    static class ViewHolder extends RecyclerView.ViewHolder {

        ViewHolder(View itemView) {
            super(itemView);
        }
    }
}
